import * as echarts from 'echarts/core';
import { LineChart,BarChart } from 'echarts/charts';
import {
    TitleComponent,
    TooltipComponent,
    GridComponent,
    LegendComponent,
    DataZoomComponent,
    DatasetComponent,
} from 'echarts/components';
import {
    CanvasRenderer
} from 'echarts/renderers';
echarts.use(
    [
        LineChart,
        BarChart,
        TitleComponent,
        TooltipComponent,
        GridComponent,
        LegendComponent,
        DatasetComponent,
        DataZoomComponent,
        CanvasRenderer
    ]
);
// 导出
export default echarts;
